package com.hzsai.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * hzsai 2020/1/13
 * usage:
 * RetentionPolicy.RUNTIME: 一直到运行时都有
 * RetentionPolicy.SOURCE: 只在源码上存在
 * RetentionPolicy.Class: 在源码、编译出的class上都有
 *
 **/
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {

    String value() default "myannotation";
}
